$OpenBSD: patch-src_ruby_supportlib_phusion_passenger_standalone_start_command_nginx_engine_rb,v 1.1 2016/11/04 22:08:19 jeremy Exp $

OpenBSD doesn't allow connecting to 0.0.0.0.

--- src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb.orig	Mon Jul 25 19:56:07 2016
+++ src/ruby_supportlib/phusion_passenger/standalone/start_command/nginx_engine.rb	Tue Nov  1 13:18:15 2016
@@ -74,7 +74,9 @@ module PhusionPassenger
             if @options[:socket_file]
               socket = UNIXSocket.new(@options[:socket_file])
             else
-              socket = TCPSocket.new(@options[:address], @options[:port])
+              address = @options[:address]
+              address = '127.0.0.1' if address == '0.0.0.0'
+              socket = TCPSocket.new(address, @options[:port])
             end
             begin
               begin
